package com.alan.lucene.service.impl;

import com.alan.lucene.entity.Book;
import com.alan.lucene.service.IBookDao;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Alan on 2017/8/4.
 */
public class BookDao implements IBookDao {
    @Override
    public List<Book> findList() {
        List<Book> books = new ArrayList<>();
        Book book1 = new Book();
        book1.setName("java");
        book1.setId(111L);
        book1.setPic("hello");
        book1.setPrice("19");
        book1.setDescription("sdfsfsdfsdf");
        Book book2 = new Book();
        book2.setName("安卓");
        book2.setId(1131L);
        book2.setPic("hesdfsf");
        book2.setPrice("19");
        book2.setDescription("sdfsfsdfsdf");
        books.add(book1);
        books.add(book2);
        return books;
    }
}
